{% extends "_base.htm" %}
{% block bodycontent %}
<a href="http://www.tsugiproject.org" target=_new><img align=right 
    width="80" src="/static/images/tsugi-logo.gif" border=0></a>
{% if fragment %}
<hr>
<!-- Above the div -->
<div id="fred">
{{ fragment|safe }}
</div>
<!-- Below the div -->
<hr>
{% else %}
{% if context.launch %}
<p>You are now successfully logged in using 
{{ context.launch.launch_type }}
- this system has the following tools:</p>
<ul>
          {% for tool in tools %}
          <li>
            <a href="{{tool.portalpath}}">{{tool.title}}</a>
            <a href="{{tool.directpath}}" target=_new 
               style="color: gray; font-size: small;">(fragment-only)</a>
            <p>{{ tool.desc }}
          </li>
          {% endfor %}
</ul>
<hr/>
<p style="color: gray; font-size: small;">
The "fragment-only" option shows the tool without any portal navigation.  This is how it
will look when it is embedded into another LMS.  You can embed this tool into any LMS
which suports LTI 1.0 by using the fragment url with the proper password.  The fragment
url handles both the LTI web service protocol interactions as well as 
the actual tool fragment and interaction when the tool is running in the browser.
</p>
<hr/>
<p>
Here is the information we know about you from the launch.  
User: {{username}} Course: {{coursename}} Role: {{role}}
</p>
<p>
The following is a dump of the output of the LTI run-time
data structures.  It is helpful in case you want to 
look are doing development and want to look 
more deeply into some of the information available
to your LTI tool at
run-time.  The most important bits of this are
available as convienence methods on the LTI object.
<div style="color: gray; font-size: small;">
<pre>
{{ dump }}
</pre>
</div>
</p>
{% else %}
{% if user %}
<p>Hello Logged in user...</p>
{% else %}
<p>
Welcome to the demo of the CloudCollab application which uses the Tsugi framework for building 
applications using IMS Learning Tools Interoperability Tsugi applications
can also be launched and accept identity from Facebook.
</p>
<p>
You can download the guide to <a href="/static/docs/Tsugi-Portlet.doc">developing a Tsugi portlet</a>.
</p>
<p>
If you want to simulate a LTI 1.0 Launch, go to 
<a href="http://www.dr-chuck.com/sakai-api-test/lms.php" target="_new">
http://www.dr-chuck.com/sakai-api-test/lms.php
</a>
Enter the URL of this service, with a key of "12345" and a secret of "secret" and then
press "Submit" and "Launch Endpoint with LTI Data". 
You should come back to this site, but logged in.
<p>
The IMS Learning Tools Interoperability is being developed by the
<a href="http://developers.imsglobal.org/" target="_new">developers.imsglobal.org</a>.  If you are interested
in standards and interoperability for teaching and learning technology you should become
involved in IMS.
</p>
<p>
Questions and comments to <a href=http://www.dr-chuck.com/>Dr. Chuck</a>
</p>
<br clear="all"/>
<p class="footer">
<img src="http://code.google.com/appengine/images/appengine-silver-120x30.gif" 
alt="Powered by Google App Engine" align="right" />
<a href=http://www.imsglobal.org/toolsinteroperability2.cfm>IMS Learning Tools Interoperability v2.0 Working Group</a> <br/>
<a href="http:///www.dr-chuck.com/" class="footerlink">&copy; 2009, 2010 Charles Severance</a> All Rights Reserved.</p>
</p>
<p align="right">
<script type="text/javascript" src="http://www.ohloh.net/p/195083/widgets/project_thin_badge.js"></script>
</p>
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
